﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace dianping_shop_comment_collecter.models
{
    public class worker
    {
        /// <summary>
        /// process id
        /// </summary>
        public int pid { get; set; }
        /// <summary>
        /// 会话Id
        /// </summary>
        public string sesstion_id { get; set; }
        /// <summary>
        /// 启动时间
        /// </summary>
        public long up_time { get; set; }
        /// <summary>
        /// 在线状态
        /// </summary>
        public bool online_status { get; set; }
        /// <summary>
        /// 任务状态
        /// </summary>
        public worker_status status { get; set; }  
    }


    public enum worker_status
    {
        starting,
        running,
        working,
        done,
        error, 
        died
    }
}
